const express = require('express');
const router = express.Router();

router.get('/forCurrentUser', (req, res) => { 
    const content = [];
    for(let i = 0; i < 100; i++)
        content.push({
            id: `2019${i}`,
            branchCode: `branchCode${i}`,
            dealerCode: `2019${i}`,
            dealerName: `总代名称${i}`,
            currency: 1,
            accountBalance: 5000,
            rmb: 250,
            lockAmount: 1000,
            specialFinancedMark: '特别总账标识',
            accountDate: '2019-09-27T09:08:02.954Z',
            rowVersion: 'string',
        });
    res.json({
        message: '',
        payload: {
            content,
            totalElements: 100,
        }
    });
});

router.get('/exportData/forCurrentUser', (req, res) => {
    res.json({
        message: '导出成功',
        payload: 'Mock导出'
    });
});

router.get('/exportExchangeData/forCurrentUser', (req, res) => {
    res.json({
        message: '导出成功',
        payload: 'Mock导出'
    });
});

module.exports = router;
